package com.linewow.xhyy.nihaonew.net.api;

import com.linewow.xhyy.nihaonew.base.BaseInfo;
import com.linewow.xhyy.nihaonew.entity.ImessageInfo;
import com.linewow.xhyy.nihaonew.entity.ZEntity;
import com.linewow.xhyy.nihaonew.entity.user.HuanXinUserInfo;
import com.linewow.xhyy.nihaonew.entity.user.Uinfo;

import retrofit.http.GET;
import retrofit.http.Query;
import rx.Observable;

/**
 * Created by LXR on 2016/10/12.
 */
public interface NiHaoService {
    @GET("api/api1.5/passport.php?ac=huanxin")
    Observable<HuanXinUserInfo>huanxinUser(@Query(value = "token",encoded = true)String token);


    @GET("api/api1.5/xiaoxi.php")
    Observable<BaseInfo<ImessageInfo<Uinfo>>> getImessageInfo(@Query("ac") String ac, @Query(value = "token", encoded = true) String token,@Query("page")int page);

    @GET("api/api1.5/xiaoxi.php")
    Observable<ZEntity> getImessageInfo1(@Query("ac") String ac, @Query(value = "token", encoded = true) String token);

}
